package com.xuecheng.media;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@RefreshScope  //nacos配置文件更改不需要重启项目就可以启动,就是自动刷新nacos配置中心
@EnableDiscoveryClient
@EnableFeignClients
@EnableSwagger2Doc
@SpringBootApplication(scanBasePackages = {"com.xuecheng.media","com.xuecheng.common.exception"})
public class MediaApplication {
    public static void main(String[] args) {
        SpringApplication.run(MediaApplication.class,args);
    }
}
